
import request from '@/utils/request'
import { defineStore } from 'pinia'

export default defineStore('goods', {
  state: () => {
    return {}
  },
  actions: {
    async getGoodsInfo(id: string) {
      const res = await request.get('/goods', {
        params: {
          id,
        },
      })
      console.log(res)
      // this.info = res.data.result
    },
  },
})
